<?php
//includes
?>
<div id="module_telechargements" class="module">
	<h1><img src="images/world.png" alt="World" />&nbsp;&nbsp;Téléchargements</h1>
	<?php
		/*
		 * glob() : Recherche des chemins qui vérifient un masque
		 * $info[0] : nom de l'appli
		 * $info[1] : version
		 * $info[2] : systeme (facultatif)
		 */
		$apps = glob('modules/telechargements/apps/*');
		foreach($apps as $app) {
			$infos = explode('_',$app);
			echo "<p class='dl'>
					<img src='modules/telechargements/images/".basename($infos[0]).".png' alt='logo' class='logo' />
					<span class='gras normal'><a href='".$app."'>".basename($infos[0])."</a></span>&nbsp;&nbsp;
					<a href='javascript:void(0)'><img src='images/information.png' alt='infos' class='infos' /></a>
					<br />
					<span>Version : ".$infos[1]."</span><br />
				  </p>\n";
		}
	?>
</div>